#include <iostream>

int main()
{
	double number1 = 0.0;
	double number2 = 0.0;

	std::cout << "Enter number1: ";
	std::cin >> number1;

	std::cout << "Enter number2: ";
	std::cin >> number2;

	char operation = '+';

	std::cout << "\nEnter operation: ";
	std::cin >> operation;

	double result = 0.0;

	switch(operation)
	{
		case '+':
			result = number1 + number2;
			break;
		case '-':
			result = number1 - number2;
			break;
		case '*':
			result = number1 * number2;
			break;
		case '/':
			result = number1 / number2;
			break;
		default:
			std::cout << "error\n";
			break;
	}

	std::cout << "\nResult: " << number1 << " " << operation << " " << number2 << " = " << result << std::endl;

	return 0;

}